package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Banner {
     private int bannerId;
     private String bannerImageUrl;
     private String bannerOldName;
     private int bannerState;
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date bannerDate;
     private String bannerDescription;

   /* public Banner() {
    }

    public Banner(int bannerId, String bannerImageUrl, String bannerOldName, int bannerState, Date bannerDate, String bannerDescription) {
        this.bannerId = bannerId;
        this.bannerImageUrl = bannerImageUrl;
        this.bannerOldName = bannerOldName;
        this.bannerState = bannerState;
        this.bannerDate = bannerDate;
        this.bannerDescription = bannerDescription;
    }

    public int getBannerId() {
        return bannerId;
    }

    public void setBannerId(int bannerId) {
        this.bannerId = bannerId;
    }

    public String getBannerImageUrl() {
        return bannerImageUrl;
    }

    public void setBannerImageUrl(String bannerImageUrl) {
        this.bannerImageUrl = bannerImageUrl;
    }

    public String getBannerOldName() {
        return bannerOldName;
    }

    public void setBannerOldName(String bannerOldName) {
        this.bannerOldName = bannerOldName;
    }

    public int getBannerState() {
        return bannerState;
    }

    public void setBannerState(int bannerState) {
        this.bannerState = bannerState;
    }

    public Date getBannerDate() {
        return bannerDate;
    }

    public void setBannerDate(Date bannerDate) {
        this.bannerDate = bannerDate;
    }

    public String getBannerDescription() {
        return bannerDescription;
    }

    public void setBannerDescription(String bannerDescription) {
        this.bannerDescription = bannerDescription;
    }

    @Override
    public String toString() {
        return "Banner{" +
                "bannerId=" + bannerId +
                ", bannerImageUrl='" + bannerImageUrl + '\'' +
                ", bannerOldName='" + bannerOldName + '\'' +
                ", bannerState=" + bannerState +
                ", bannerDate=" + bannerDate +
                ", bannerDescription='" + bannerDescription + '\'' +
                '}';
    }*/
}
